#!/bin/bash
for i in hadoop100.localdomain hadoop101.localdomain hadoop102.localdomain; 
do
    echo "========== $i =========="
    ssh $i "source /etc/profile; cd /opt/module/applog; java -jar gmall2020-mock-log-2021-01-22.jar 1>/dev/null 2>/dev/null "
done
